package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Report;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.ReportTemp;

import java.util.List;

/**
 * Created by yangcs on 2017/3/22.
 */
public interface SomReportService {

    /**
     * 列表数据
     * @param report
     * @return
     */
    JSONObject list(Report report);

    /**
     * 根据模板id查询最新的报表id
     * @param reportTempId
     * @return
     */
    String queryReportIdByTempId(String reportTempId, String reportTime);

    /**
     * 根据组织和报表类型查询模板
     * @param orgId
     * @param reportType
     * @return
     */
    List<ReportTemp> queryTempsByOrgAndType(String orgId, int reportType);
}
